import {sequelize} from '../db/sequelize.js'
import { DataTypes} from 'sequelize'

export const Blog = sequelize.define('blogs', {
    title: {
        type: DataTypes.STRING,
        allowNull: false
    },
    author: DataTypes.STRING
})//,{
//     tableName: 'blogs', // 强制表名为 blogs
//   timestamps: true    // 确保启用 createdAt 和 updatedAt
// })

// export default Blog